//
//  Constants.h
//  Diary_WhatsUrName?
//
//  Created by caixianghui on 17/3/11.
//  Copyright © 2017年 caixianghui. All rights reserved.
//

#ifndef Constants_h
#define Constants_h

#define SECONDS_OF_ONE_DAY 86400
#define DWScreenWidth [UIScreen mainScreen].bounds.size.width
#define DWScreenHeight [UIScreen mainScreen].bounds.size.height
#define DWDiaryCalendarViewHeight 350
#define DWDiaryNavigationBarHeight (DWScreenHeight*109/667)
#define DWSettingNavigationBarHeight (DWScreenHeight*80/667)
#define DWDiarySegmentY (DWScreenHeight*40/667)
#define DWDiaryButtonSettingPadding 10
#define DWDiaryButtonSettingWidth 28
#define DWDiaryTypingCalendarHeight (DWScreenHeight*145/667)
#define DWDiaryTypingCalenderSmallHeight (DWScreenHeight*58/667)
#define DWDiaryTypingTextFieldHeight (DWScreenHeight*30/667)
#define DWDiaryTypingTextViewHeight (DWScreenHeight*304/667)
#define DWDiaryTypingToolBarHeight (DWScreenHeight*55/667)
#define DWDisKeyboardButtonHeight 20
#define DWDisKeyboardButtonWidth 60

#define DWDiaryTypingViewHeight (DWScreenHeight*313/667)

#define DWDiaryContentViewWidth (DWScreenWidth*355/375)
#define DWDiaryContentViewHeight (DWScreenHeight*600/667)

#define DWDateViewHeight (DWScreenHeight*165/667)
#define DWDateLabelY (DWScreenHeight*20/667)
#define DWDetailTextViewHeight (DWScreenHeight*415/667)

#define DWDiaryAlertViewWidth (DWScreenWidth*250/375)
#define DWDiaryAlertViewHeight (DWScreenHeight*150/667)

#define DWDiaryTipsViewWidth (DWScreenHeight*100/667)
#define DWDiaryTipsViewHeight (DWScreenWidth*50/375)

#define DWPasswordSpaceMargin (DWScreenWidth*8/375)
#define DWPasswordSpaceWidth (DWScreenWidth*30/375)
#define DWPasswordSpaceHeight (DWScreenHeight*30/667)
#define DWPasswordDisplayViewWidth (DWScreenWidth*144/375)
#define DWPasswordDisplayViewHeight (DWScreenHeight*40/667)
#define DWPasswordDisplayViewTopPadding (DWScreenHeight*100/667)

#define DWPasswordNumButtonWidth (DWScreenHeight*80/667)
#define DWPasswordNumButtonLeftPadding (DWScreenWidth*42.5/375)
#define DWPasswordNumButtonTopPadding (DWScreenHeight*170/667)
#define DWPasswordNumButtonMargin (DWScreenWidth*25/375)

#define DWSettingQuitButtonLeftPadding 10
#define DWSettingQuitButtonWidth 20

#define kFitScreen(value)  ((value) * [UIScreen mainScreen].bounds.size.width / 375)

// RGB颜色
#define DWRGBColor(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define DWRGBA(R, G, B, A) [UIColor colorWithRed:(R)/255.f green:(G)/255.f blue:(B)/255.f alpha:(A)]
// 主题颜色
#define DWDiaryThemeBlueColor DWRGBColor(70, 130, 180)
#define DWDisKeyboardButtonGrayColor DWRGBColor(201, 201, 201)

#pragma mark - Colors

#define UIColorGray1 UIColorMake(53, 60, 70)
#define UIColorGray2 UIColorMake(73, 80, 90)
#define UIColorGray3 UIColorMake(93, 100, 110)
#define UIColorGray4 UIColorMake(113, 120, 130)
#define UIColorGray5 UIColorMake(133, 140, 150)
#define UIColorGray6 UIColorMake(153, 160, 170)
#define UIColorGray7 UIColorMake(173, 180, 190)
#define UIColorGray8 UIColorMake(196, 200, 208)
#define UIColorGray9 UIColorMake(216, 220, 228)

#define UIColorTheme1 UIColorMake(239, 83, 98) // Grapefruit
#define UIColorTheme2 UIColorMake(254, 109, 75) // Bittersweet
#define UIColorTheme3 UIColorMake(255, 207, 71) // Sunflower
#define UIColorTheme4 UIColorMake(159, 214, 97) // Grass
#define UIColorTheme5 UIColorMake(63, 208, 173) // Mint
#define UIColorTheme6 UIColorMake(49, 189, 243) // Aqua
#define UIColorTheme7 UIColorMake(90, 154, 239) // Blue Jeans
#define UIColorTheme8 UIColorMake(172, 143, 239) // Lavender
#define UIColorTheme9 UIColorMake(238, 133, 193) // Pink Rose

#endif /* Constants_h */
